#!/usr/bin/env python
# -*- coding: utf-8 -*-

#Au yardımcı araçları

import os
import sys
def lockcontrol():
  if os.path.isdir("/var/au/lock"):
    return "locked"
  else:
    return "unlocked"
def lock():
  os.mkdir("/var/au/lock")
def cik():
  try:
    os.rmdir("/var/au/lock")
  except OSError:
    pass
  
  sys.exit()